<template>
    <table>
        <thead></thead>
        <tbody>            
            <tr v-for="(row, index) in dataSource" :key="index">
                <td
                    v-for="({dataIndex}, c_idx) in columns"
                    :key="index+'_'+c_idx"
                >{{ row[dataIndex] }}</td>
            </tr>
        </tbody>
    </table>
</template>

<script lang="ts">
import { Component, Prop, Vue } from "vue-property-decorator";

@Component
export default class Table extends Vue {
    @Prop() public dataSource!: Object[];
}
</script>
